package com.itfreer.gis.dictionary;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Component;

import com.itfreer.form.dictionary.LocalDictionaryBase;
import com.itfreer.form.dictionary.base.DictionaryItem;

/**
 * 定义图层类型本地字典
 */
@Component
public class GisLayerTypeDictionary extends LocalDictionaryBase {

	@Override
	public String getDictionaryName() {
		return "g_layertype";
	}
	
	@Override
	protected List<DictionaryItem> getDictionarys() {
		List<DictionaryItem> list = new ArrayList<DictionaryItem>();
		
		DictionaryItem item = new DictionaryItem();
		item.setId("ArcGISDynamicMapServiceLayer");
		item.setCode("ArcGISDynamicMapServiceLayer");
		item.setDisplay("动态地图服务");
		item.setOrder(1);
		list.add(item);
		
		item = new DictionaryItem();
		item.setId("ArcGISTiledMapServiceLayer");
		item.setCode("ArcGISTiledMapServiceLayer");
		item.setDisplay("静态地图服务");
		item.setOrder(2);
		list.add(item);
		
		item = new DictionaryItem();
		item.setId("ArcGISImageServiceLayer");
		item.setCode("ArcGISImageServiceLayer");
		item.setDisplay("影像地图服务");
		item.setOrder(3);
		list.add(item);
		
		item = new DictionaryItem();
		item.setId("WMTSLayer");
		item.setCode("WMTSLayer");
		item.setDisplay("WMTS服务");
		item.setOrder(4);
		list.add(item);
		
		item = new DictionaryItem();
		item.setId("WMSLayer");
		item.setCode("WMSLayer");
		item.setDisplay("WMS服务");
		item.setOrder(5);
		list.add(item);
		
//		item = new DictionaryItem();
//		item.setId("FeatureLayer");
//		item.setCode("FeatureLayer");
//		item.setDisplay("要素服务");
//		item.setOrder(6);
//		list.add(item);
		
		item = new DictionaryItem();
		item.setId("bMapVeclayer");
		item.setCode("bMapVeclayer");
		item.setDisplay("百度基础地理服务");
		item.setOrder(7);
		list.add(item);
		
		item = new DictionaryItem();
		item.setId("bMapAnolayer");
		item.setCode("bMapAnolayer");
		item.setDisplay("百度影像标注服务");
		item.setOrder(8);
		list.add(item);
		
		item = new DictionaryItem();
		item.setId("bMapImglayer");
		item.setCode("bMapImglayer");
		item.setDisplay("百度影像服务");
		item.setOrder(9);
		list.add(item);
		
		item = new DictionaryItem();
		item.setId("tdMapAnnoLayer");
		item.setCode("tdMapAnnoLayer");
		item.setDisplay("天地图基础地理标注服务");
		item.setOrder(10);
		list.add(item);
		
		item = new DictionaryItem();
		item.setId("tdMapLayer");
		item.setCode("tdMapLayer");
		item.setDisplay("天地图基础地理服务");
		item.setOrder(11);
		list.add(item);
		
		item = new DictionaryItem();
		item.setId("tdMapImgAnnoLayer");
		item.setCode("tdMapImgAnnoLayer");
		item.setDisplay("天地图影像标注服务");
		item.setOrder(12);
		list.add(item);
		
		item = new DictionaryItem();
		item.setId("tdMapImgLayer");
		item.setCode("tdMapImgLayer");
		item.setDisplay("天地图影像服务");
		item.setOrder(13);
		list.add(item);
		
		item = new DictionaryItem();
		item.setId("terrainLayer");
		item.setCode("terrainLayer");
		item.setDisplay("地形服务");
		item.setOrder(14);
		list.add(item);

		return list;
	}
}
